package kxfang.com.common.bean;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;

/**
 * 商品列表
 */
public class GoodsListModel implements Parcelable {

    private String ID;
    private String CoverUrl;
    private String Title;
    private String IPrice;
    private String DisCountPrice;
    private String DisCountNum;
    private int Statu;
    private String CreateTime;
    private int ClassID;
    private int LimitCount;
    private String StoreID;
    private int Num;
    private String ShopCartID;
    private String Label;
    private int MonthSaleNum;
    private int StarNum;
    private String Distributionfee;
    private String DistributionfeeStr;
    private String StartPrice;
    private String HeadUrl;
    private String StoreName;
    private int SaleCount;
    private String Distance;
    private String DeliveryTime;

    protected GoodsListModel(Parcel in) {
        ID = in.readString();
        CoverUrl = in.readString();
        Title = in.readString();
        IPrice = in.readString();
        DisCountPrice = in.readString();
        DisCountNum = in.readString();
        Statu = in.readInt();
        CreateTime = in.readString();
        ClassID = in.readInt();
        LimitCount = in.readInt();
        StoreID = in.readString();
        Num = in.readInt();
        ShopCartID = in.readString();
        MonthSaleNum = in.readInt();
        StarNum = in.readInt();
        Label = in.readString();
        Distributionfee = in.readString();
        DistributionfeeStr = in.readString();
        StartPrice = in.readString();
        HeadUrl = in.readString();
        StoreName = in.readString();
        SaleCount = in.readInt();
        Distance = in.readString();
        isCheck = in.readByte() != 0;
        DeliveryTime = in.readString();
    }

    public static final Creator<GoodsListModel> CREATOR = new Creator<GoodsListModel>() {
        @Override
        public GoodsListModel createFromParcel(Parcel in) {
            return new GoodsListModel(in);
        }

        @Override
        public GoodsListModel[] newArray(int size) {
            return new GoodsListModel[size];
        }
    };

    public GoodsListModel() {
    }

    public String getDeliveryTime() {
        return DeliveryTime;
    }

    public void setDeliveryTime(String deliveryTime) {
        DeliveryTime = deliveryTime;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getCoverUrl() {
        return CoverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        CoverUrl = coverUrl;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public String getIPrice() {
        return IPrice;
    }

    public void setIPrice(String IPrice) {
        this.IPrice = IPrice;
    }

    public String getDisCountPrice() {
        return DisCountPrice;
    }

    public void setDisCountPrice(String disCountPrice) {
        DisCountPrice = disCountPrice;
    }

    public String getDisCountNum() {
        return DisCountNum;
    }

    public void setDisCountNum(String disCountNum) {
        DisCountNum = disCountNum;
    }

    public int getStatu() {
        return Statu;
    }

    public void setStatu(int statu) {
        Statu = statu;
    }

    public String getCreateTime() {
        return CreateTime;
    }

    public String getLabel() {
        return Label;
    }

    public void setLabel(String label) {
        Label = label;
    }

    public void setCreateTime(String createTime) {
        CreateTime = createTime;
    }

    public int getClassID() {
        return ClassID;
    }

    public void setClassID(int classID) {
        ClassID = classID;
    }

    public int getLimitCount() {
        return LimitCount;
    }

    public void setLimitCount(int limitCount) {
        LimitCount = limitCount;
    }

    public String getStoreID() {
        return StoreID;
    }

    public void setStoreID(String storeID) {
        StoreID = storeID;
    }

    public int getNum() {
        return Num;
    }

    public void setNum(int num) {
        Num = num;
    }

    public String getShopCartID() {
        return ShopCartID;
    }

    public void setShopCartID(String shopCartID) {
        ShopCartID = shopCartID;
    }

    public int getMonthSaleNum() {
        return MonthSaleNum;
    }

    public void setMonthSaleNum(int monthSaleNum) {
        MonthSaleNum = monthSaleNum;
    }

    public int getStarNum() {
        return StarNum;
    }

    public void setStarNum(int starNum) {
        StarNum = starNum;
    }

    public String getDistributionfee() {
        return Distributionfee;
    }

    public void setDistributionfee(String distributionfee) {
        Distributionfee = distributionfee;
    }

    public String getDistributionfeeStr() {
        return DistributionfeeStr;
    }

    public void setDistributionfeeStr(String distributionfeeStr) {
        DistributionfeeStr = distributionfeeStr;
    }

    public String getStartPrice() {
        return StartPrice;
    }

    public void setStartPrice(String startPrice) {
        StartPrice = startPrice;
    }

    public String getHeadUrl() {
        return HeadUrl;
    }

    public void setHeadUrl(String headUrl) {
        HeadUrl = headUrl;
    }

    public String getStoreName() {
        return StoreName;
    }

    public void setStoreName(String storeName) {
        StoreName = storeName;
    }

    public int getSaleCount() {
        return SaleCount;
    }

    public void setSaleCount(int saleCount) {
        SaleCount = saleCount;
    }

    public String getDistance() {
        return Distance;
    }

    public void setDistance(String distance) {
        Distance = distance;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    private boolean isCheck;// 不是后台返回

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(ID);
        dest.writeString(CoverUrl);
        dest.writeString(Title);
        dest.writeString(IPrice);
        dest.writeString(DisCountPrice);
        dest.writeString(DisCountNum);
        dest.writeInt(Statu);
        dest.writeString(CreateTime);
        dest.writeInt(ClassID);
        dest.writeInt(LimitCount);
        dest.writeString(StoreID);
        dest.writeInt(Num);
        dest.writeString(Label);
        dest.writeString(ShopCartID);
        dest.writeInt(MonthSaleNum);
        dest.writeInt(StarNum);
        dest.writeString(Distributionfee);
        dest.writeString(DistributionfeeStr);
        dest.writeString(StartPrice);
        dest.writeString(HeadUrl);
        dest.writeString(StoreName);
        dest.writeInt(SaleCount);
        dest.writeString(Distance);
        dest.writeByte((byte) (isCheck ? 1 : 0));
        dest.writeString(DeliveryTime);
    }
}
